<?php

class ZFWork_Form_Element extends Zend_Form_Element {

	public static function formatElementAsButton(Zend_Form_Element & $element) {
		ZFKiller_Form_Element::addAttrib($element, 'class', 'button')
				//->addPrefixPath('ZFWork_Form_Decorator', PATH_ZFEXTEND . '/ZFWork/Form/Decorator', Zend_Form::DECORATOR)
		;
	}

	public static function formatElementAsDate(Zend_Form_Element & $element) {
		ZFKiller_Form_Element::addAttrib($element, 'class', 'date')
				//->addPrefixPath('ZFWork_Form_Decorator', PATH_ZFEXTEND . '/ZFWork/Form/Decorator', Zend_Form::DECORATOR)
		;
	}
	
	public static function formatElementAsNumber(Zend_Form_Element & $element) {
		ZFKiller_Form_Element::addAttrib($element, 'class', 'sizeauto');
		self::formatElementAsText($element);
	}

	public static function formatElementAsRadio(Zend_Form_Element & $element) {
		ZFKiller_Form_Element::addAttrib($element, 'class', 'radio')
				//->addPrefixPath('ZFWork_Form_Decorator', PATH_ZFEXTEND . '/ZFWork/Form/Decorator', Zend_Form::DECORATOR)
		;
	}

	public static function formatElementAsText(Zend_Form_Element & $element) {
		ZFKiller_Form_Element::addAttrib($element, 'class', 'txt')
				//->addPrefixPath('ZFWork_Form_Decorator', PATH_ZFEXTEND . '/ZFWork/Form/Decorator', Zend_Form::DECORATOR)
		;
	}
	
	public static function formatElementAsTextarea(Zend_Form_Element & $element) {
		
	}

}
